package operation;

import book.Book;
import book.BookShelf;

public class ShowOperation implements IOperation{
    @Override
    public void working(BookShelf bookShelf) {
        int currentSize = bookShelf.getUsedSize();
        for (int i = 0; i < currentSize; i++) {
            Book book = bookShelf.getBooks(i);
                System.out.println(book);
        }
    }
}
